package cn.group01.git.mapper;

import cn.group01.git.entity.Goods;
import cn.group01.git.entity.GoodsImport;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    List<Goods> getList(@Param("goodsName") String goodsName,@Param("supName") String supName);

    Goods getByGoodsName(String goodsName);

    void addGoods(Goods goods);

    List<Goods> getBySupName(String supName);

    void batchDelete(@Param("ids") Integer[] ids);

    void editGoods(Goods goods);

    List<Goods> selectGoodsName();

    Integer getQuantityByGoodsName(String goodsName);

    void updateQuantity(@Param("goodsName") String goodsName, @Param("number") Integer number);
    void addGoodsMsg(@Param("supName") String supName, @Param("goodsName") String goodsName, @Param("quantity") long number,@Param("specs") String specs);
    void updateGoodsNumber(@Param("total") Integer total, @Param("id") Integer id);
    void edit(@Param("result") Integer result, @Param("id") Integer id);

}
